package com.youmingxing.bean;

import org.json.JSONObject;

/**
 * @author evilyin(ChenZhixi)
 * @since 15/10/26
 */
public class AuditionFromUser {
    public int id;
    public int movie_id;
    public int category_id;
    public String audition_title;
    public String movie;
    public String category;
    public String category_img;
    public String apply_time;
    public int votes;
    public int rank;
    public int status;//-1未开始 0进行中 1结束结果确认中 2结束进入海选 3结束未进入海选
    public String status_tip;

    public AuditionFromUser(JSONObject data) {
        id = data.optInt("id");
        movie_id = data.optInt("movie_id");
        category_id = data.optInt("category_id");
        audition_title = data.optString("audition_title");
        movie = data.optString("movie");
        category = data.optString("category");
        category_img = data.optString("category_img");
        apply_time = data.optString("apply_time");
        votes = data.optInt("votes");
        rank = data.optInt("rank");
        status = data.optInt("status");
        status_tip = data.optString("status_tip", "");
    }
}
